import java.util.Hashtable;


public class GForgeConstants {

	
	private static Hashtable<String, Integer> users;	
	private static Hashtable<String, Integer> projects;
	private static Hashtable<Integer, Integer> projectsgroup;
	
	
	public static int getUser_id(String login) {
		if ( users == null ) {
			users = new Hashtable<String, Integer>();
			users.put("carolina", 108);
			users.put("cayo", 244);
			users.put("ivocalado", 226);
		}
		return users.get(login);
	}
	
	public static int getProject_id(String name) {
		if ( projects == null ) {
			projects = new Hashtable<String, Integer>();
			projects.put("JavaME Effort", 129);	
			projects.put("Embedded Map in C for MAEMO", 15);
			projects.put("Scream Voice Modifier", 69);
			projects.put("Equipment", 109);

		}
		return projects.get(name);
	}
	
	public static int getProject_group_id(int project) {
		if ( projectsgroup == null ) {
			projectsgroup = new Hashtable<Integer, Integer>();
			projectsgroup.put(129, 270);
			projectsgroup.put(151, 316);
			projectsgroup.put(15, 71);
			projectsgroup.put(69, 117);
			projectsgroup.put(109, 240);
		}
		return projectsgroup.get(project);
	}
}
